package com.sdrongyou;

import com.sdrongyou.common.utils.RunCallbackUtils;
import com.sdrongyou.tms.config.TmsAutoConfigure;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Import;

/**
 * 应用启动入口
 *
 * @author azhao
 * @date 2018/4/26
 */

@SpringBootApplication
@EnableDiscoveryClient
@Import({TmsAutoConfigure.class})
public class Main {
    public static void main(String[] args) {
        ConfigurableApplicationContext app = SpringApplication.run(Main.class, args);
        RunCallbackUtils.run(app.getEnvironment());
    }
}